﻿using UnityEngine;
using System.Collections;

public class Enemy : MonoBehaviour {
    public bool isDead = false;
    public bool isDeadFound = false;
	
	
    
    public void Dead()
    {
        this.transform.FindChild("EnemySight").gameObject.SetActive(false);
        this.GetComponent<EnemyAI>().enabled = false;
        isDead = true;
        this.transform.FindChild("EnemyBody").GetComponent<Animator>().SetTrigger("Dead");
    }
    
}
